package code.HAOJianguo;

public class InteractionMap {
	private String conversation;
	private String performative;

	public InteractionMap() {
		;
	}

	public InteractionMap(String performative, String conversation) {
		this.performative = performative;
		this.conversation = conversation;
	}

	public String getConversation() {
		return conversation;
	}

	public void setConversation(String conversation) {
		this.conversation = conversation;
	}

	public String getPerformative() {
		return performative;
	}

	public void setPerformative(String performative) {
		this.performative = performative;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((conversation == null) ? 0 : conversation.hashCode());
		result = prime * result
				+ ((performative == null) ? 0 : performative.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this.getPerformative().equalsIgnoreCase(obj.toString())) {
			return true;
		}
		return false;
	}
}
